package gspushmq.v1.app.subscribeapp.models;

import static gspushmq.v1.app.subscribeapp.config.Config.IOS_APNS_ENV;

import java.io.Serializable;

/**
 * @Description iOS推送对象
 * @Author chengsj
 * @Date 2018/9/14 9:41
 * @Version 1.0
 * @company 上海朝阳永续信息技术有限公司
 * @copyright (c) 2015 SunTime Co'Ltd Inc. All rights reserved.
 **/
public class IOSMessge extends Message implements Serializable {

    private Integer iOSBadge; // iOS应用图标右上角角标
    private Boolean iOSSilentNotification = false;//开启静默通知
    private Boolean iOSBadgeAutoIncrement = true;//自动增长
    private String iOSMusic = "default"; // iOS通知声音
    private String iOSSubtitle ;//iOS10通知副标题的内容
    private String iOSNotificationCategory = "iOS10 Notification Category";//指定iOS10通知Category
    private Boolean iOSMutableContent = true;//是否允许扩展iOS通知内容
    private String iOSApnsEnv =IOS_APNS_ENV;//iOS的通知是通过APNs中心来发送的，需要填写对应的环境信息。"DEV" : 表示开发环境 "PRODUCT" : 表示生产环境
    private Boolean iOSRemind =true; // 消息推送时设备不在线（既与移动推送的服务端的长连接通道不通），则这条推送会做为通知，通过苹果的APNs通道送达一次。注意：离线消息转通知仅适用于生产环境
    private String iOSRemindBody = "iOSRemindBody";//iOS消息转通知时使用的iOS通知内容，仅当iOSApnsEnv=PRODUCT && iOSRemind为true时有效
    private String iOSExtParameters = "{\"_ENV_\":\"DEV\",\"k2\":\"v2\"}"; //通知的扩展属性(注意 : 该参数要以json map的格式传入,否则会解析出错)

    public Boolean getiOSBadgeAutoIncrement() {
        return iOSBadgeAutoIncrement;
    }

    public void setiOSBadgeAutoIncrement(Boolean iOSBadgeAutoIncrement) {
        this.iOSBadgeAutoIncrement = iOSBadgeAutoIncrement;
    }

    public Integer getiOSBadge() {
        return iOSBadge;
    }

    public void setiOSBadge(Integer iOSBadge) {
        this.iOSBadge = iOSBadge;
    }

    public Boolean getiOSSilentNotification() {
        return iOSSilentNotification;
    }

    public void setiOSSilentNotification(Boolean iOSSilentNotification) {
        this.iOSSilentNotification = iOSSilentNotification;
    }
    public String getiOSMusic() {
        return iOSMusic;
    }

    public void setiOSMusic(String iOSMusic) {
        this.iOSMusic = iOSMusic;
    }

    public String getiOSSubtitle() {
        return iOSSubtitle;
    }

    public void setiOSSubtitle(String iOSSubtitle) {
        this.iOSSubtitle = iOSSubtitle;
    }

    public String getiOSNotificationCategory() {
        return iOSNotificationCategory;
    }

    public void setiOSNotificationCategory(String iOSNotificationCategory) {
        this.iOSNotificationCategory = iOSNotificationCategory;
    }

    public Boolean getiOSMutableContent() {
        return iOSMutableContent;
    }

    public void setiOSMutableContent(Boolean iOSMutableContent) {
        this.iOSMutableContent = iOSMutableContent;
    }

    public String getiOSApnsEnv() {
        return iOSApnsEnv;
    }

    public void setiOSApnsEnv(String iOSApnsEnv) {
        this.iOSApnsEnv = iOSApnsEnv;
    }

    public Boolean getiOSRemind() {
        return iOSRemind;
    }

    public void setiOSRemind(Boolean iOSRemind) {
        this.iOSRemind = iOSRemind;
    }

    public String getiOSRemindBody() {
        return iOSRemindBody;
    }

    public void setiOSRemindBody(String iOSRemindBody) {
        this.iOSRemindBody = iOSRemindBody;
    }

    public String getiOSExtParameters() {
        return iOSExtParameters;
    }

    public void setiOSExtParameters(String iOSExtParameters) {
        this.iOSExtParameters = iOSExtParameters;
    }
}
